import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner num = new Scanner(System.in);
        System.out.println("Please load in Px");
        Double a = num.nextDouble();
        System.out.println("Please load in Py");
        Double b = num.nextDouble();
        System.out.println("Please load in P0x");
        Double c = num.nextDouble();
        System.out.println("Please load in P0y");
        Double d = num.nextDouble();
        Point p = new Point(a, b);
        Point p0 = new Point(c, d);
        System.out.println("P is (" + p.getX() + "," + p.getY() + ")");// 可以直接把调用的方法print出来吗？相当于我这里是把return给print出来吗？把return的值打出来
        System.out.println("P0 iS (" + p0.getX() + "," + p0.getY() + ")");
        System.out.println("Distance^2 between P and P0 is " + p.getDistance(p0));
        System.out.println("Please load in Cx");
        Double e = num.nextDouble();
        System.out.println("Please load in Cy");
        Double f = num.nextDouble();
        System.out.println("Please load in Tx");
        Double g = num.nextDouble();
        System.out.println("Please load in Ty");
        Double h = num.nextDouble();
        Point pt = new Point(e, f);
        Point pc = new Point(g, h);
        System.out.println("Please load in the radius");
        Double r = num.nextDouble();
        Circle m = new Circle(pc, r);
        boolean j = m.contains(pt);
        Circle n = new Circle(2);
        boolean k = n.contains(pt);
        if (j) {
            System.out.println("The test point is in the circleM<custom center>");
        } else {
            System.out.println("The test point is not in the circleM<custom center>");
        }
        if (k) {
            System.out.println("The test point is in the circleN<0,0>");
        } else {
            System.out.println("The test point is not in the circleN<0,0>");
        }
        num.close();
    }
}
